From: Carlos Garnacho Date: Fri, 13 Jul 2018 21:32:33 +0000 (+0200) Subject: windowManager: Declare variables X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~929^2~4^2~21 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=2f76951658e23c036c62bb2c1238fef0f136113a;p=gnome-shell.git windowManager: Declare variables Fixes warnings from GJS. --- diff --git a/js/ui/windowManager.js b/js/ui/windowManager.js index b831071a0..02d5f9029 100644 --- a/js/ui/windowManager.js +++ b/js/ui/windowManager.js @@ -635,8 +635,8 @@ var AppSwitchAction = new Lang.Class({ if (this.get_n_current_points() == 3) { for (let i = 0; i < this.get_n_current_points(); i++) { - [startX, startY] = this.get_press_coords(i); - [x, y] = this.get_motion_coords(i); + let [startX, startY] = this.get_press_coords(i); + let [x, y] = this.get_motion_coords(i); if (Math.abs(x - startX) > MOTION_THRESHOLD || Math.abs(y - startY) > MOTION_THRESHOLD)